home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
L' Effet Pommier 3
/
L'Effet Pommier - Volume 03.iso
/
Mise à jour
/
MailLink for PowerTalk
/
Mail*Link® PT⁄INET
/
Mail*Link Extras
/
AppleScript Support
/
Connect Now⁄Inet.script
< prev
next >
Wrap
Text File
|
1994-09-09
|
1KB
|
25 lines
(*
** You may execute this script from the "Script Editor"or save it
** as a double-clickable application. To save as a application, pick
** "Save as Run-Only..." from the "File" menu, set the "Kind"
** pop-up to "Application" and set the options (we recommend
** "Stay Open" be unchecked and "Never Show Startup Screen"
** be checked). This application may then be executed at any time
**causing the gateway to send/receive mail to/from your internet
** host.
**
** You may also save this script as a "compiled script" which can
** then be directly executed by some AppleScript aware applications.
*)
tell application "Finder"
-- verify that we are not running version 1.0 of AppleScript
-- system crashes will occur under this version!
if version of file "AppleScript¬" of folder "Extensions" of folder "System Folder" of startup disk is "1.0" then
display dialog "You must use AppleScript 1.1 or later." buttons {"Cancel"} default button "Cancel" with icon stop
else
Prompt For Identity -- If the keychain is locked, prompt to unlock it
PMSAM connect now "PT/Internet" -- cause the gateway to be executed
end if
end tell